package com.itheima.Test;

import java.io.Serializable;

public class StudentTest007 implements Serializable {
    //请定义Student类，有以下属性：姓名、性别、年龄，并实现Serializable接口。
    String name ;
    String sex;
    int age;

    public StudentTest007(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "StudentTest007{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }
}
